MarkLogic 10 Product Documentation
DELETE /v1/config/query/(default|{name})/{child-element}

Summary

Remove an option setting from the named query options.

Response

MarkLogic Server returns status 204 Deleted status.

Required Privileges

This operation requires the rest-admin role, or the following privileges:

http://marklogic.com/xdmp/privileges/rest-admin

http://marklogic.com/xdmp/privileges/rest-writer

http://marklogic.com/xdmp/privileges/rest-reader

Usage Notes

{child-element} should be the name of a child element of a search:options node. For an option summary, see PUT /v1/config/query/(default|{name}). For details, see Appendix: Query Options Reference in the Search Developer's Guide.

If {child-element} is unrecognized, this request does nothing. If the named query options contain multiple occurrences of the child element, MarkLogic Server deletes all occurrences. For example, DELETE /v1/config/query/my-options/constraint deletes all <constraint/> elements of "my-options".

For more details, see Configuring Query Options in the REST Application Developer's Guide.

Powered by MarkLogic Server | Terms of Use | Privacy Policy